package com.kmt.plaza.dao;

import com.kmt.plaza.entity.Classify;
import com.kmt.plaza.general.GeneralDAO;
import com.kmt.plaza.vo.ClassifyVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClassifyMapper extends GeneralDAO<Classify> {
    //连接查询
    public List<ClassifyVO> selectAllClassify();
    //子查询，根据productId查询子类
    public List<ClassifyVO> selectAllClassify2(int parentId);
    //查询一级类别
    public List<ClassifyVO> selectFirstLevelClassifies();
}